package com.jsb.laundry.common.utils.sf;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 读取支付配置文件
 *
 * @author zmy
 * @create 2022-12-10 12:01
 */
@Component
public class SFProperties {

    private static final Logger LOGGER = LoggerFactory.getLogger(SFProperties.class);

    /**
     * 自己的 ID
     */
    public static String partnerId;
    /**
     * 环境校验码
     */
    public static String checkWord;
    /**
     * 环境的地址
     */
    public static String callUrlBox;
    /**
     * API的服务名
     */
    public static String serviceCode;

    @Value("${sf.partnerId}")
    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    @Value("${sf.checkWord}")
    public void setCheckWord(String checkWord) {
        this.checkWord = checkWord;
    }

    @Value("${sf.callUrlBox}")
    public void setCallUrlBox(String callUrlBox) {
        this.callUrlBox = callUrlBox;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }
}
